<?php
/* SVN FILE: $Id: group_form.php 253 2009-12-15 07:49:47Z supersmashbrothers $ */
/**
* ibMarket 2
* IP.Board 3.0
* ibMarket member editing html
*
* @author $Author: supersmashbrothers $
* @copyright $Copyright$
* @version $Revision: 253 $
* @lastrevision $Date: 2009-12-15 07:49:47 +0000 (Tue, 15 Dec 2009) $
* @modifiedby $LastChangedBy: supersmashbrothers $
* @lastmodified $LastChangedDate: 2009-12-15 07:49:47 +0000 (Tue, 15 Dec 2009) $
* @filesource $URL: http://ipb-ibmarket.googlecode.com/svn/ibmarket2/trunk/admin/applications_addon/other/ibmarket/extensions/admin/group_form.php $
*/

class admin_group_form__ibmarket implements admin_group_form
{	
	/**
	* Tab name
	* This can be left blank and the application title will
	* be used
	*
	* @access	public
	* @var		string	Tab name
	*/
	public $tab_name = "";

	
	/**
	* Returns content for the page.
	*
	* @access	public
	* @param    array 				Group data
	* @param	integer				Number of tabs used so far
	* @return   array 				Array of tabs, content
	*/
	public function getDisplayContent( $group=array(), $tabsUsed = 2 )
	{
		$this->html = ipsRegistry::getClass('output')->loadTemplate('cp_skin_group_form_ibmarket', 'ibmarket');
		
		ipsRegistry::getClass('class_localization')->loadLanguageFile( array( 'admin_market' ), 'ibmarket' );
		
		return array( 'tabs' => $this->html->acp_group_form_tabs( $group, ( $tabsUsed + 1 ) ), 'content' => $this->html->acp_group_form_main( $group, ( $tabsUsed + 1 ) ), 'tabsUsed' => 1 );
	}
	
	/**
	* Process the entries for saving and return
	*
	* @access	public
	* @return   array 				Array of keys => values for saving
	*/
	public function getForSave()
	{
		$return = array(
						'g_market_tax'		=>ipsRegistry::$request['g_market_tax'],
						'g_market_discount'	=>ipsRegistry::$request['g_market_discount'],
						'g_market_view'		=>ipsRegistry::$request['g_market_view'],
						'g_market_use'		=>ipsRegistry::$request['g_market_use'],
						);

		return $return;
	}
	

}